package com.api.base.dao;

import com.api.base.model.SysUserRole;
import com.api.core.ApiMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserRoleMapper extends ApiMapper<SysUserRole> {
    SysUserRole getByUserId(@Param("userId") Long userId);
    List<SysUserRole> getListByUserId(@Param("userId") Long userId);

    void deleteByUid(Long id);
}